import Vue from 'vue'
import App from './App'
import router from './router'
// 引入样式重置文件
import 'css/reset.css'
// 引入fastclick
import FastClick from 'fastclick'
// 引入iconfont图标
import 'css/iconfont.css'

import VueAwesomeSwiper from 'vue-awesome-swiper'
// require styles
import 'swiper/dist/css/swiper.css'

// 引入axios
import axios from 'axios'
import store from './store'
// 在Vue实例化对象上通过原型挂一个方法，用来实现异步请求
Vue.prototype.$http = axios

Vue.use(VueAwesomeSwiper)

FastClick.attach(document.body)
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
